StringScanner.SkipToAlphaNum Function

Syntax

Result_Flag as L = SkipToAlphaNum as l()

Arguments

Result_Flag

True if an alphanumeric character was found.

Description

Skip until a alphanumeric character is encountered. Return true if successful.

Discussion

The <StringScanner>.SkipToAlphaNum() function moves the offset to the next alphanumeric character. The offset does not move if it is already pointing to a alphanumeric character.

Example

dim scanner as P
dim txt as C
txt = <<%text%
This is wonderful prose written
by a technical writer of note.
%text%
scanner = stringscanner.create(txt)
scanner.scanover(4)
? scanner.SkipToAlphaNum()
= .T.
? scanner.GetToOffset()
= "This "
? scanner.getremainder()
= is wonderful prose written
by a technical writer of note.

See Also